import request from '@/utils/request'

// 查询预警记录列表
export function listAlertLog(query) {
  return request({
    url: '/system/alertLog/list',
    method: 'get',
    params: query
  })
}

// 查询预警记录详细
export function getAlertLog(id) {
  return request({
    url: '/system/alertLog/' + id,
    method: 'get'
  })
}

// 新增预警记录
export function addAlertLog(data) {
  return request({
    url: '/system/alertLog',
    method: 'post',
    data: data
  })
}

// 修改预警记录
export function updateAlertLog(data) {
  return request({
    url: '/system/alertLog',
    method: 'put',
    data: data
  })
}

// 删除预警记录
export function delAlertLog(id) {
  return request({
    url: '/system/alertLog/' + id,
    method: 'delete'
  })
}

// 导出预警记录
export function exportAlertLog(query) {
  return request({
    url: '/system/alertLog/export',
    method: 'get',
    params: query
  })
}